package com.qzdsoft.erpcloud.service.sys;

import java.util.List;
import java.util.Map;

import com.qzdsoft.erpcloud.domain.basic.BasicUser;
import com.qzdsoft.erpcloud.domain.sys.LoginUser;
import com.qzdsoft.erpcloud.domain.sys.SysUser;
import com.qzdsoft.erpcloud.vo.query.basic.BasicUserEditInfo;
import com.qzdsoft.erpcloud.vo.query.basic.BasicUserInfo;
import com.qzdsoft.erpcloud.vo.sys.SysUserInfo;
import com.qzdsoft.erpcloud.vo.sys.SysUserQueryParam;
import com.qzdsoft.vo.LayTableResponse;
import com.qzdsoft.vo.Response;

/**
 * Created by Yang
 */
public interface SysUserService {

	SysUser selectById(Integer id);
	/**
	 * 根据id查找basicUser
	 * @param id
	 * @return
	 */
	 public BasicUserInfo selectBasicUserById(Integer id);
//    Response saveOrUpd(SysUser sysUser);
    /**
     * 删除系统用户，非物理删除
     * @param id
     * @return
     */
    Response del(Integer id);

    /**
     * 系统用户页面查询
     * @param info
     * @return
     */
    LayTableResponse<BasicUserInfo> selectData(SysUserQueryParam info);
    
    /**
     * 获取登陆用户信息
     * 从redis中获取
     * @param uid
     * @return
     */
    LoginUser getUser(Integer uid);
    
    /**
     * 系统用户新增修改保存
     * @param sysUser
     * @return
     */
    Response edit_execute(BasicUserEditInfo info);
    
    /**
     * 系统用户修改密码
     * @param id
     * @param opwd
     * @param npd
     * @param npda
     * @return
     */
    Response pwdsave(Integer id ,String opwd,String npd,String npda);
}
